﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SelfScore.ascx.cs" Inherits="SelfScore" %>
&nbsp;<asp:DetailsView ID="DetailsView_SS" runat="server" 
    AutoGenerateRows="False" 
    DataSourceID="ObjectDataSource_SS" Height="50px" Width="125px" 
    DataKeyNames="Id" OnDataBound="DetailsView_SS_DataBound" 
    onitemupdating="DetailsView_SS_ItemUpdating">
    <Fields>
        <asp:BoundField DataField="Id" HeaderText="Id" Visible="False" />
        <asp:BoundField DataField="SerialNumber" HeaderText="考核编号" ReadOnly="True" />
        <asp:BoundField DataField="Name" HeaderText="姓名" ReadOnly="True" />
        <asp:TemplateField HeaderText="部门">
            <ItemTemplate>
                <%# GetDptNameById(Eval("DepartmentNum"))%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="SelfScore" HeaderText="自评分" />
        <asp:CommandField ShowEditButton="True" />
    </Fields>
</asp:DetailsView>
<asp:ObjectDataSource ID="ObjectDataSource_SS" runat="server" OnDataBinding="ObjectDataSource_SS_DataBinding"
    OnLoad="ObjectDataSource_SS_Load" OnSelecting="ObjectDataSource_SS_Selecting"
    SelectMethod="GetStaffBySNum" TypeName="StaffDB" DataObjectTypeName="StaffDetail"
    OnSelected="ObjectDataSource_SS_Selected" UpdateMethod="UpdateSelfScoreBySN"></asp:ObjectDataSource>
